package com.hkyp.ss.course.provider.repository;

import com.hkyp.ss.course.provider.model.User;
import com.hkyp.ss.course.provider.repository.baseRepository.BaseRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Optional;
import java.util.Set;

public interface UserRepository extends BaseRepository<User,Long> {

    boolean existsByEmail(String email);

    Page<User> findAllByIdIn(Set ids, Pageable page);

    Optional<User> findByEmail(String email);

}